mips-force-nomadd4
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 7 Sep 2023 22:41:35 +0000 (23:41 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 7 Sep 2023 22:41:35 +0000 (23:41 +0100)
commit578ff863d36b4db3cbec18e9b669766c7557759e
tree070eb962b78ca3bce31473b9c7e6729f7af6523d
parenta23e1041a88a83bfaeab6a873730fd8286b6a3fc
mips-force-nomadd4

The MIPS port aims to support the Loongson 3 family of CPUs in addition
of the other MIPS CPUs. On the Loongson 3 family the MADD4 instructions
are fused, while they are not fused on the other MIPS CPUs. In order to
support both, we have to disabled those instructions.

For that, the patch below basically corresponds to the --with-madd4=no
used on the GCC side.

Gbp-Pq: Topic mips
Gbp-Pq: Name mips-force-nomadd4.patch
clang/lib/Basic/Targets/Mips.h
llvm/lib/Target/Mips/MipsSubtarget.cpp